package cn.edu.ldu.protocol;

import cn.edu.ldu.entity.UserEntity;
import cn.edu.ldu.util.L;
import com.alibaba.fastjson.JSONObject;

import javax.swing.*;

public class RegisterSuccess {
    public RegisterSuccess(Protocol protocol){
        L.OK(protocol.getData(), UserEntity.class);
        UserEntity user = JSONObject.parseObject(protocol.getData(),UserEntity.class);

        JOptionPane.showMessageDialog(null,"您的账户是："+user.getId(),"注册成功",JOptionPane.INFORMATION_MESSAGE);
    }
}
